package com.ruoyi.daily.controller;

import com.ruoyi.common.core.domain.R;
import com.ruoyi.daily.domain.dto.*;
import com.ruoyi.daily.domain.vo.ByDateVo;
import com.ruoyi.daily.service.QualityReportOneService;
import com.ruoyi.daily.service.QualityReportTowService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * @Author cmz
 * @Date 2024-05-30 17:59
 */
@RestController
@RequestMapping("/daily/qualityReportTow")
@Api(tags = "经营日报-质量报表2")
public class QualityReportTowController {
    @Resource
    private QualityReportTowService qualityReportTowService;

    @ApiOperation("近七天签收未达标预估罚款")
    @GetMapping("/notMeetingStandards")
    public R<Map<String,Object>> notMeetingStandards() {
        return qualityReportTowService.notMeetingStandardsEcharts();
    }
    /*public R<List<NotMeetingStandardsDto>> notMeetingStandards() {
        return qualityReportTowService.notMeetingStandards();
    }*/
    
    @ApiOperation("近七天三件理赔账单")
    @GetMapping("/threeClaims")
    public R<Map<String,Object>> threeClaims() {
        return qualityReportTowService.threeClaimsEcharts();
    }

    @ApiOperation("近七天三件理赔账单单个")
    @GetMapping("/threeClaimsOne")
    public R<ThreeClaimsDto> threeClaimsOne() {
        return qualityReportTowService.threeClaimsOne();
    }
    /*public R<List<ThreeClaimsDto>> threeClaims() {
        return qualityReportTowService.threeClaims();
    }*/

    @ApiOperation("近七天履约率")
    @GetMapping("/fulfillmentRate")
    public R<FulfillmentRateDto> fulfillmentRate() {
        return qualityReportTowService.fulfillmentRate();
    }
}
